﻿using System.Linq;

namespace Citi.EmailSender.Domain
{
    public partial class EmailAddress 
    {
        public EmailAddress GetByAddress(string address)
        {
            return SelectAll<EmailAddress>().FirstOrDefault(x => x.Address == address);
        }
    }
}
